package com.cl.service.impl;

import com.cl.mapper.VaccinatorMapper;
import com.cl.pojo.Vaccinator;
import com.cl.service.VaccinatorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VaccinatorServiceImpl implements VaccinatorService {
    @Autowired
    VaccinatorMapper vaccinatorMapper;
    @Override
    public int insertVaccinator(Vaccinator vaccinator) {
        return vaccinatorMapper.insertVaccinator(vaccinator);
    }

    @Override
    public Vaccinator queryByUid(int uid) {
        return vaccinatorMapper.queryByUid(uid);
    }

    @Override
    public int updateTimeByUid(String modifyTime, int uId) {
        return vaccinatorMapper.updateTimeByUid(modifyTime, uId);
    }

    @Override
    public int remove(int uId) {
        return vaccinatorMapper.remove(uId);
    }

    @Override
    public List<Vaccinator> queryAll(String time, int page, int limit,String name) {
        return vaccinatorMapper.queryAll(time, page, limit,name);
    }

    @Override
    public int countAll() {
        return vaccinatorMapper.countAll();
    }

    @Override
    public int selectNumber(int month,int year) {
        return vaccinatorMapper.selectNumber(month,year);
    }

    @Override
    public List<String> queryByAge(String age) {
        return vaccinatorMapper.queryByAge(age);
    }

    @Override
    public List<String> queryByDate(String age) {
        return vaccinatorMapper.queryByDate(age);
    }

    @Override
    public List<Vaccinator> queryAllTime() {
        return vaccinatorMapper.queryAllTime();
    }

}
